package com.feidee.bigdata.service;

import com.feidee.bigdata.model.CommonResponse;
import com.feidee.bigdata.service.impl.ConsumerServiceImpl;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author:CHQ
 * @Date:2020/4/15 9:33
 * @Description
 */
@Service
@FeignClient(value = "payment-hystrix-service",fallback = ConsumerServiceImpl.class)
public interface ConsumerService {

    @RequestMapping("/ok")
    String ok();

    @RequestMapping("/err")
    String err();

}
